package com.young.test.bean;

import org.apache.log4j.Logger;

import org.springframework.context.Lifecycle;
import org.springframework.stereotype.Component;

@Component
public class LifecycleBean implements Lifecycle {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(LifecycleBean.class);
	
	private String message ;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void start() {
		message = "start";

	}

	public void stop() {
		logger.info("---------- Lifecycle Stop ------------");

	}

	public boolean isRunning() {
		// TODO Auto-generated method stub
		return false;
	}

}
